home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / tex / lametex_.z / lametex_ / lametex / page / page_dagger.ps < prev    next >
Encoding:
Text File  |  1992-09-02  |  9.5 KB  |  305 lines

  1. %! page_dagger.ps    - A dagger on a standard rectangular page.
  2. %% This is a LameTeX Page Description File written in PostScript.
  3. %% Postscript Code by Jon Monsarrat Copyright 1992
  4. %% permission given for anything except selling this or deleting the header.
  5. %% This is a page template for the LameTeX formatter
  6. %% A normal page with a dagger in the middle for LameTeX output to look like
  7. %% LaTeX output
  8.  
  9. %% Use this in conjunction with dagger.ps!
  10.  
  11. %%%%%%%%%%%  icon-name  LeftMarginIcon   - %%%%%%%%%%%%
  12. % Given the name of an icon, executes the icon in the left margin.
  13. /LeftMarginIcon
  14. {
  15.   gsave
  16.        20 ypos 72 sub translate cvx exec
  17.   grestore
  18. } bind def
  19.  
  20. /DaggerBox
  21. {
  22.   xlm xrm xlm sub .9 mul add ybm moveto
  23.   xlm xrm xlm sub 4 div add ybm ytm ybm sub .4 mul add lineto
  24.   xlm xrm xlm sub 6 div add ybm ytm ybm sub .45 mul add lineto
  25.   xlm ytm lineto xlm xrm xlm sub .2 mul add ytm lineto
  26.   xlm xrm xlm sub .5 mul add ybm ytm ybm sub .85 mul add lineto
  27.   xlm xrm xlm sub .8 mul add ybm ytm ybm sub .8 mul add lineto
  28.   xlm xrm xlm sub .7 mul add ybm ytm ybm sub .6 mul add lineto
  29.   xrm ybm lineto
  30.   closepath
  31. } bind def
  32.  
  33. %% REQUIRED DEFINITIONS START HERE %%
  34.  
  35. % Makes a path that desribes the page
  36. /PageShape
  37. {
  38.   /xlm xlm .6 mul 3 in add def /xrm xrm .6 mul 3 in add def
  39.   /ybm ybm .6 mul 2 in add def /ytm ytm .6 mul 2 in add def
  40.   DaggerBox  % gsave stroke grestore  % Uncomment me to show the margin path
  41. % gsave stroke grestore
  42.   currentflat 8 mul
  43. } bind def
  44.  
  45. % Anything to do when a new page is started
  46. /StartPage
  47. {
  48.   % I enclose this huge definition here for a very good reason!
  49.   % This is because this routine is called in-between PostScript
  50.   % save and restore commands and therefore all this memory I'm
  51.   % wasting here will be cleaned up.
  52.  
  53. %!The MIT Assassin's Guild Dagger, 8/13/87 by Jonathan Monsarrat
  54. %% Yes, I really did do this entirely by hand, not with a drawing program!
  55. %% Comment: There are no comments. Why: What would I say? left hilt,
  56. %% middle bump near the right side of the blade right next to
  57. %% the shiny part?
  58. /dag1 {newpath 408 9 moveto
  59. 390 18 383 27 376 40 curveto
  60. 374.25 43.25 368 50 361 53 curveto
  61. 357.5 54.5 353 62 350 72 curveto
  62. 344 92 340 93 334 98 curveto
  63. 322 108 313 112 308 115 curveto
  64. 303 118 300 120 298 126 curveto
  65. 296 132 294 134 289 139 curveto
  66. 279 149 277 148 275 156 curveto
  67. 271 172 265 176 261 182 curveto
  68. 257 188 253 203 250 213 curveto
  69. 248.5 218 247 222 244 228 curveto
  70. 241 234 233 268 229 283 curveto
  71. 227 290.5 225 302 220 307 curveto
  72. 217.5 309.5 210 330 208 337 curveto
  73. 202 358 199 361 192 366 curveto
  74. 188.5 368.5 184 372 182 376 curveto
  75. 181 378 180 380 177 382 curveto
  76. 171 386 160 400 140 433 curveto
  77. 137.5 437 134 443 130 441 curveto
  78. 126 437 118 408 119 401 curveto
  79. 120 394 125 392 130 391 curveto
  80. 140 389 143 387 130 382 curveto
  81. 123.5 379.5 118 373 109 372 curveto
  82. 106 367 101 367 98 375 curveto
  83. 97 374 91 373 88 372 curveto
  84. 82 370 80 375 87 379 curveto
  85. 90.5 381 83 388 79 391 curveto
  86. 59 406 60 436 63 451 curveto
  87. 66 466 68 468 72 472 curveto
  88. 75 480 89 504 92 515 curveto
  89. 93.5 520.5 93 521 90 526 curveto
  90. 84 536 83 554 86 565 curveto
  91. 89 576 82 578 80 582 curveto
  92. 66 610 67 605 69 615 curveto
  93. 70 620 70 627 69 629 curveto
  94. 68 631 67 631 68 632 curveto
  95. 69 633 63 637 62 638 curveto
  96. 50 646 52 648 51 650 curveto
  97. 36 680 39 695 29 704 curveto
  98. 0 731 17 775 24 784 curveto
  99. 27.5 788.5 42 792 46 796 curveto
  100. 50 800 58 802 63 801 curveto
  101. 83 797 94 789 97 775 curveto
  102. 100 761 87 753 86 770 curveto
  103. 85 787 83 789 71 788 curveto
  104. 65 787 62 786 61 784 curveto
  105. 59 780 59 779 52 778 curveto
  106. 38 776 31 764 32 750 curveto
  107. 33 745 35 756 37 755 curveto
  108. 41 753 40 740 39 732 curveto
  109. 45 718 57 719 61 734 curveto
  110. 66 753 70 748 91 751 curveto
  111. 94.5 751.5 97 752 100 756 curveto
  112. 103 760 110 760 111 752 curveto
  113. 112 744 113 742 118 737 curveto
  114. 123 732 128 720 129 712 curveto
  115. 130 704 133 702 140 697 curveto
  116. 147 692 152 682 155 667 curveto
  117. 158 652 161 650 171 641 curveto
  118. 176 635.5 177 637 176 634 curveto} def
  119.  
  120. /dag2 {175 631 178 627 181 621 curveto
  121. 184 615 183 611 177 615 curveto
  122. 183 599 188 600 185 606 curveto
  123. 184 608 190 609 192 604 curveto
  124. 228 627 233 631 234 636 curveto
  125. 234.5 638.5 240 638 242 637 curveto
  126. 244 636 253 636 260 642 curveto
  127. 267 648 294 649 304 644 curveto
  128. 314 639 328 622 322 609 curveto
  129. 316 596 312 580 297 571 curveto 307 570 lineto
  130. 289 541 283 540 279 554 curveto
  131. 275 568 276 577 280 586 curveto
  132. 282 590.5 283 593 278 591 curveto
  133. 268 587 254 565 251 551 curveto
  134. 250 546 249 538 239 536 curveto
  135. 229 534 225 530 228 509 curveto
  136. 229 502 230 500 242 480 curveto
  137. 232 492 230 491 236 473 curveto
  138. 249 451 280 395 297 370 curveto
  139. 305.5 357.5 313 332 309 316 curveto
  140. 305 300 329 238 327 226 curveto
  141. 325 214 328 210 331 203 curveto
  142. 334 196 345 188 348 178 curveto
  143. 349 175 350 168 363 161 curveto
  144. 367 159 371 158 369 147 curveto
  145. 367 136 375 132 380 127 curveto
  146. 395 112 408 78 405 62 curveto
  147. 402 58 412 28 419 23 curveto
  148. 422.5 20.5 420 12 416 10 curveto
  149. 414 9 406 8 408 9 curveto closepath} def
  150.  
  151. /dag3 {1 setgray 382 73 moveto
  152. 377 102 368 110 353 126 curveto
  153. 348 130 342 150 331 153 curveto
  154. 323 155 311 170 305 184 curveto
  155. 299 198 290 210 285 241 curveto
  156. 280 272 265 270 258 329 curveto
  157. 257 340 250 349 238 362 curveto
  158. 226 375 227 379 226 389 curveto
  159. 225 399 225 407 219 410 curveto
  160. 213 413 199 422 159 480 curveto
  161. 152 490 151 500 167 512 curveto
  162. 199 536 209 537 210 528 curveto
  163. 211 519 220 474 245 444 curveto
  164. 255 432 243 432 251 420 curveto
  165. 259 408 265 392 278 387 curveto 283 372 lineto
  166. 295 348 296 354 293 310 curveto
  167. 292 295 292 277 300 267 curveto
  168. 304 262 305 257 308 245 curveto
  169. 318 197 326 174 361 139 curveto
  170. 385 115 392 93 390 75 curveto
  171. 388 57 385.5 58.5 382 73 curveto} def
  172.  
  173. /dag4 {368 60 moveto
  174. 360 65 351 84 349 93 curveto
  175. 347 102 340 115 303 148 curveto
  176. 295 155 290 163 284 181 curveto
  177. 278 199 239 298 238 314 curveto
  178. 237.5 322 228 325 225 327 curveto
  179. 222 329 219 335 218 339 curveto
  180. 214 355 195 378 187 388 curveto
  181. 185 390 187 400 153 442 curveto
  182. 136 463 157 463 163 453 curveto
  183. 166 448 175 442 180 434 curveto
  184. 235 346 252 333 253.5 313 curveto
  185. 255 293 255 275 269 248 curveto
  186. 270.5 245 277 241 281 223 curveto
  187. 285 214 293 180 302 168 curveto
  188. 320 144 325 139 335 128 curveto
  189. 355 110 361 97 371 62 curveto
  190. 372 57 376 55 368 60 curveto} def
  191.  
  192. /dag5 {82 426 moveto
  193. 81 440 87 452 92 462 curveto
  194. 89.5 467 100 469 96 477 curveto
  195. 92 485 101 511 149 555 curveto
  196. 147 557 154 564 147 566 curveto
  197. 144 566 143 567 143 572 curveto
  198. 144 574 144 575 140 573 curveto
  199. 136 571 135 578 141 582 curveto
  200. 139 594 142 597 159 608 curveto
  201. 167.5 613.5 171 610 172 604 curveto
  202. 170 598 175 592 173 585 curveto
  203. 171 580 179 575 181 582 curveto
  204. 183 589 191 599 205 600 curveto
  205. 208 601 210 603 211 610 curveto
  206. 232 620 240 629 243 630 curveto
  207. 241 621 257 628 266 635 curveto
  208. 275 642 282 637 281 625 curveto
  209. 280 617 277 612 252 594 curveto
  210. 244 588 239 573 235 555 curveto
  211. 233 546 232 540 225 539 curveto
  212. 221.5 538 218 549 220 558 curveto
  213. 221 561 218 565 189 547 curveto
  214. 174 538 174 538 173 531 curveto
  215. 172 524 164 522 151 520 curveto
  216. 144.5 519 142 516 141 511 curveto
  217. 141 510 142 509 138 505 curveto
  218. 134 501 134 498 138 487 curveto
  219. 139 484 140 475 139 471 curveto
  220. 139 470 124 468 120 453 curveto
  221. 118 445 120 440 112 433 curveto
  222. 104 426 103 421 102 412 curveto
  223. 101 403 94 404 93 410 curveto
  224. 92 416 83 412 82 426 curveto} def
  225.  
  226. /dag6 {99 567 moveto
  227. 97 577 99 583 104 590 curveto
  228. 114 604 120 616 139 632 curveto
  229. 144 636 148 637 147 639 curveto
  230. 146 641 140 640 111 617 curveto
  231. 106 613 100 607 94 593 curveto
  232. 91 586 87 588 84 596 curveto
  233. 81 604 82 609 83 618 curveto
  234. 85 636 85 641 79 640 curveto
  235. 73 639 69 642 72 656 curveto
  236. 73.5 663 72 670 71 677 curveto
  237. 70 684 79 694 91 697 curveto
  238. 90 703 93 707 100 708 curveto
  239. 107 709 109 709 109 698 curveto
  240. 109 691 112 690 116 700 curveto
  241. 122 715 114 720 111 720 curveto
  242. 110 720 105 715 100 712 curveto
  243. 80 700 72 702 70 692 curveto
  244. 62 715 69 731 80 738 curveto
  245. 98 749.5 106 743 119 720 curveto
  246. 125 710 126 701 130 700 curveto
  247. 134 699 136 693 129 691 curveto 123 687 lineto
  248. 110 680 105 672 99 658 curveto
  249. 96 651 101 643 104 650 curveto
  250. 107 657 109 657 111 658 curveto
  251. 113 659 117 657 119 662 curveto
  252. 125 670 127 673 125 680 curveto
  253. 137 690 141 689 142 678 curveto
  254. 143 667 143 659 149 653 curveto
  255. 155 647 152 640 160 639 curveto
  256. 168 638 170 630 171 625 curveto
  257. 160 625 155 622 162 620 curveto
  258. 152 612 150 610 131 593 curveto
  259. 127 590 126 585 130 580 curveto
  260. 134 575 132 565 120 560 curveto
  261. 114 557.5 110 551 105 558 curveto
  262. 100 565 101 557 99 567 curveto
  263. } def
  264.  
  265. /dagger {dag1 dag2 fill dag3 fill dag4 fill dag5 fill dag6 fill} def
  266.  
  267. gsave
  268.   3 in 2 in translate .6 .6 scale dagger
  269.   dag1 dag2 closepath
  270.   pathbbox /ytm exch def /xrm exch def /ybm exch def /xlm exch def
  271. grestore
  272. } bind def
  273.  
  274. % Anything to do when a new page is ended
  275. /EndPage
  276. {
  277.    pagenumber 4 string cvs
  278.    dup stringwidth pop 8.5 in
  279.    formatdict /rightmargin get sub
  280.    formatdict /leftmargin get sub 
  281.    exch sub 2 div formatdict /leftmargin get add
  282.    formatdict /bottommargin get 2 div moveto show
  283.    /pagenumber pagenumber 1 add def
  284.    showpage  % A new page here really does mean start a new page.
  285. } bind def
  286.  
  287. %% INITIALIZATION TO DO WHEN FILE IS LOADED %%
  288. % Page-specific defaults that describe the page.
  289. /InitPage
  290. {
  291.   /evenodd true def   % if true use even-odd rule; false means winding rule
  292.   /fillout true def   % true means fill outside shape. false is inside.
  293.  
  294.   /in { 72 mul } def
  295.   /BM 0 in def    % Absolute Bottom Margin for page
  296.   /TM 11 in def   % Absolute Top Margin for page
  297.   /LM 0 in def    % Absolute Left Margin for page
  298.   /RM 8.5 in def  % Absolute Right Margin for page
  299.   
  300.   userdict /pagenumber known not
  301.   { /pagenumber 1 def } if    % Initialize pagenumber if not done already
  302. } bind def
  303.  
  304. InitPage        % Just loading this file initializes the page.
  305.